﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for FileStreamResultTest and is intended
    ///     to contain all FileStreamResultTest Unit Tests
    /// </summary>
    [TestClass]
    public class FileStreamResultTest
    {
        /// <summary>
        ///     A test for FileStreamResult Constructor
        /// </summary>
        [TestMethod]
        public void FileStreamResultConstructorTest()
        {
            var target = new FileStreamResult();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for StreamContent
        /// </summary>
        [TestMethod]
        public void StreamContentTest()
        {
            var target = new FileStreamResult();
            var expected = new Byte[]
                {
                    12, 12
                };
            target.StreamContent = expected;
            var actual = target.StreamContent;
            Assert.AreEqual( expected[ 0 ], actual[ 0 ] );
            Assert.AreEqual( expected[ 1 ], actual[ 1 ] );
        }
    }
}